<?php


namespace App\Http\Controllers\Supplier;


use App\Services\AlipayService;
use App\Services\CommonService;
use App\Services\UploadService;
use Illuminate\Http\Request;

class UploadController extends BaseVerifyController
{
    public function upload(Request $request){
        $sizeLimit = $request->input('sizeLimit','0');
        $riginalName = $request->input('riginalName','0');
        $res = UploadService::upload($sizeLimit,$riginalName);
        return ReturnMsg($res['status'] ? CommonService::HTTP_CODE_SUCCESS : CommonService::HTTP_CODE_FAIL,$res['message'],$res['status'] ? ['image'=>$res['image']] : []);
    }

}
